﻿using System;
using System.Runtime.Serialization;
using System.Web.Mvc;

namespace cludg.Web.Core.Exceptions
{
	public class CludgException : Exception
	{
		public ActionResult Result { get; protected set; }

		public CludgException()
		{
		}

		public CludgException(string message) : base(message)
		{
		}

		public CludgException(string message, Exception innerException) : base(message, innerException)
		{
		}

		public CludgException(string message, Exception innerException, ActionResult result)
			: base(message, innerException)
		{
			Result = result;
		}

		protected CludgException(SerializationInfo info, StreamingContext context) : base(info, context)
		{
		}
	}
}
